package com.zyy.admin.mapper;

import com.zyy.admin.entity.SysUserRole;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhangyangyang
 * @createTime 2023419 19:07
 * @description
 */
@Repository
public interface SysUserRoleMapper {
    @Select("SELECT * FROM sys_user_role WHERE user_id = #{userId}")
    List<SysUserRole> listByUserId(Integer userId);
}
